﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="SobFS.Web.backend.manage.usergroup.List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../../javascript/ui/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
    <link href="../../css/default.css" rel="stylesheet" type="text/css" />
    <script src="../../../javascript/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="../../../javascript/ui/js/ligerBuild.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../javascript/function.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="navigation">
        控制面板 >> 用户组管理</div>
    <div class="tools_box">
        <div class="tools_bar">
            <div class="search_box">
                <asp:TextBox ID="txtKeywords" runat="server" CssClass="txtInput"></asp:TextBox>
                <asp:Button ID="btnSearch" runat="server" Text="搜 索" CssClass="btnSearch" OnClick="btnSearch_Click" />
            </div>
            <a href="Add.aspx" class="tools_btn"><span><b class="add">添加操作</b></span></a> <a href="javascript:void(0);" onclick="checkAll(this);"
                class="tools_btn"><span><b class="all">全选操作</b></span></a>
            <asp:LinkButton ID="btnDelete" runat="server" CssClass="tools_btn" OnClientClick="return ExePostBack('btnDelete');" OnClick="btnDelete_Click"><span><b class="delete">删除操作</b></span></asp:LinkButton>
        </div>
    </div>
    <!--列表展示.开始-->
    <asp:Repeater ID="rptList" runat="server">
        <HeaderTemplate>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
                <tr>
                    <th style="width: 6%; text-align: center;">
                        选择
                    </th>
                    <th style="width: 82%; text-align: left;">
                        用户组名称
                    </th>
                    <th style="width: 6%; text-align: center;">
                        状态
                    </th>
                    <th style="width: 6%; text-align: center;">
                        操作
                    </th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td style="text-align: center;">
                    <asp:CheckBox ID="chkId" CssClass="checkall" runat="server" /><asp:HiddenField ID="hidId" Value='<%#Eval("Id")%>' runat="server" />
                </td>
                <td>
                    <a href="Edit.aspx?Id=<%#Eval("Id")%>">
                        <%#Eval("Name")%></a>
                </td>                
                <td align="center">
                    <%#Eval("IsEnabled").ToString().Trim() == "1" ? "<img title=\"正常\" src=\"../../images/icon_correct.png\" />" : "<img title=\"禁用\" src=\"../../images/icon_disable.png\" />"%>
                </td>
                <td align="center">
                    <a href="Edit.aspx?Id=<%#Eval("Id")%>">修改</a>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"10\">暂无记录</td></tr>" : ""%>
            </table>
        </FooterTemplate>
    </asp:Repeater>
    <!--列表展示.结束-->
    <div class="line15">
    </div>
    <div class="page_box">
        <div id="PageContent" runat="server" class="flickr right">
        </div>
        <div class="left">
            显示<asp:TextBox ID="txtPageNum" runat="server" CssClass="txtInput2 small2" onkeypress="return (/[\d]/.test(String.fromCharCode(event.keyCode)));"
                OnTextChanged="txtPageNum_TextChanged" AutoPostBack="True"></asp:TextBox>条/页
        </div>
    </div>
    <div class="line10">
    </div>
    </form>
</body>
</html>
